import fetch from 'common/src/utils/fetch';
import utils from 'common/src/utils/utils';
import cryp from  'common/src/utils/secret';

/**
 * 查询权限列表, 用于生产权限树
 * @param {data} data
 */
export function getAuthorities(data) {
  return fetch({
    url: '/api/userservice/authorityMenu/findAuthorityMenuList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}
/**
 * 分页查询菜单列表
 * @param {data} data
 */
export function findMenuListPage(data) {
  return fetch({
    url: '/api/userservice/authorityMenu/findMenuListPage',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}
/**
 * 查询单个菜单详情
 * @param {id} id
 */
export function findMeunById(id) {
  return fetch({
    url: '/api/userservice/authorityMenu/findMeunById/' + id,
    method: 'get'
  });
}
/**
 * 新增权限菜单
 * @param {data} data
 */
export function addAuthorityMenu(data) {
  return fetch({
    url: '/api/userservice/authorityMenu/addAuthorityMenu',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}
/**
 * 删除权限菜单
 * @param {data} id
 */
export function deleteAuthorityMenu(id) {
  return fetch({
    url: '/api/userservice/authorityMenu/deleteAuthorityMenu/' + id,
    method: 'delete'
  });
}
/**
 * 修改权限菜单
 * @param {data} data
 */
export function updateAuthorityMenu(data) {
  return fetch({
    url: '/api/userservice/authorityMenu/updateAuthorityMenu',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}
/**
 * 批量修改权限菜单
 * @param {data} data
 */
export function updateAuthorityMenuList(data) {
  return fetch({
    url: '/api/userservice/authorityMenu/updateAuthorityMenuList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}
/**
 * 菜单排序
 * @param {data} data
 */
export function orderMenus(data) {
  return fetch({
    url: '/api/userservice/authorityMenu/orderMenus',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}
/**
 * 获取用户组列表
 * @param {data} data
 */
export function getGroups(data) {
  return fetch({
    url: '/api/userservice/userGroup/findGroupList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}
/**
 * 获取用户组列表
 * @param {groupId} groupId
 */
export function getGroupById(groupId) {
  return fetch({
    url: '/api/userservice/userGroup/getGroup',
    method: 'get',
    params: {
      groupId: groupId
    }
  });
}

/**
 * 用户管理 添加到组 获取用户列表
 * @param {data} data
 */
export function getUnbindGroups(data) {
  return fetch({
    url: '/api/userservice/userGroup/findUnbindGroupList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 获取角色列表
 * @param {data} data
 */
export function getRoles(data) {
  return fetch({
    url: '/api/userservice/role/findRoleList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 用户组列表 绑定角色 获取角色列表
 * @param {data} data
 */
export function getUnbindRoles(data) {
  return fetch({
    url: '/api/userservice/role/findUnbindRoleList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 创建用户组
 * @param {data} data
 */
export function createUserGroup(data) {
  return fetch({
    url: '/api/userservice/userGroup/addGroup',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}
/**
 * 获取本地用户
 * @param {data} data
 */
export function findLocalUserList(data) {
  return fetch({
    url: '/api/userservice/localUser/findLocalUserList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 创建本地用户
 * @param {data} data
 */
export function addLocalUser(data) {
  return fetch({
    url: '/api/userservice/localUser/addLocalUser',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 根据用户组查询未绑定该组的本地用户
 * @param {data} data
 */
export function findLocalUserListNotInGroupId(data) {
  return fetch({
    url: '/api/userservice/localUser/findLocalUserListNotInGroupId',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 修改本地用户信息
 * @param {data} data
 */
export function updateLocalUser(data) {
  return fetch({
    url: '/api/userservice/localUser/updateLocalUser',
    method: 'put',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 用户组批量新增用户
 * @param {data} data
 */
export function batchAddUserGroupRel(data) {
  return fetch({
    url: '/api/userservice/userGroup/batchAddUserGroupRel',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 用户组批量新增用户
 * @param {data} data
 */
export function findGroupNotInListByUserId(data) {
  return fetch({
    url: '/api/userservice/userGroup/findGroupNotInListByUserId',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 修改用户组
 * @param {data} data
 */
export function updateGroup(data) {
  return fetch({
    url: '/api/userservice/userGroup/updateGroup',
    method: 'put',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 查询用户关联的用户组
 * @param {data} data
 */
export function findGroupListByUserId(data) {
  return fetch({
    url: '/api/userservice/userGroup/findGroupListByUserId',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 修改角色
 * @param {data} data
 */
export function updateRole(data) {
  return fetch({
    url: '/api/userservice/role/updateRole',
    method: 'put',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 新增角色
 * @param {data} data
 */
export function addrole(data) {
  return fetch({
    url: '/api/userservice/role/addRole',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 根据角色id查询权限
 * @param {data} data
 */
export function getAuthOrDeptRelListByRoleId(query) {
  return fetch({
    url: '/api/userservice/role/getAuthOrDeptRelListByRoleId?' + query,
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    },
  });
}

/**
 * 用户组批量新增角色
 * @param {data} data
 */
export function batchAddRoleGroupRel(data) {
  return fetch({
    url: '/api/userservice/userGroup/batchAddRoleGroupRel',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 角色批量删除用户组
 * @param {data} data
 */
export function batchDelGroupRelByRoleId(data) {
  return fetch({
    url: '/api/userservice/role/batchDelGroupRelByRoleId',
    method: 'delete',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 角色批量新增用户组
 * @param {data} data
 */
export function batchAddGroupRelByRoleId(data) {
  return fetch({
    url: '/api/userservice/role/batchAddGroupRelByRoleId',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 角色批量新增权限
 * @param {data} data
 */
export function batchAddAuthOrDeptToRoleRel(data) {
  return fetch({
    url: '/api/userservice/role/batchAddAuthOrDeptToRoleRel',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 查询组包含的用户基本信息列表
 * @param {data} data
 */
export function getUserInfoListByGroupId(data) {
  return fetch({
    url: '/api/userservice/userGroup/getUserInfoListByGroupId',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 查询组不包含的用户基本信息列表
 * @param {data} data
 */
export function getUserInfoListNotInGroupId(data) {
  return fetch({
    url: '/api/userservice/userGroup/getUserInfoListNotInGroupId',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 用户组批量删除用户
 * @param {data} data
 */
export function batchDelUserGroupRel(data) {
  return fetch({
    url: '/api/userservice/userGroup/batchDelUserGroupRel',
    method: 'delete',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 删除角色
 * @param {data} data
 */
export function _deleteRole(query) {
  return fetch({
    url: '/api/userservice/role/deleteRole?' + query,
    method: 'delete'
  });
}

/**
 * 角色批量删除权限
 * @param {data} data
 */
export function batchDelAuthOrDeptToRoleRel(data) {
  return fetch({
    url: '/api/userservice/role/batchDelAuthOrDeptToRoleRel',
    method: 'delete',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 查询角色下组列表
 * @param {data} data
 */
export function getGroupListByRoleId(query) {
  return fetch({
    url: '/api/userservice/role/getGroupListByRoleId?' + query,
    method: 'get',
    // headers: { 'Content-Type': 'application/json' },
  });
}

/**
 * 查询角色下组列表
 * @param {data} data
 */
export function getGroupListNotInRoleId(query) {
  return fetch({
    url: '/api/userservice/role/getGroupListNotInRoleId?' + query,
    method: 'get',
    // headers: { 'Content-Type': 'application/json' },
  });
}

/**
 * 删除本地用户接口
 * @param {data} data
 */
export function deleteLocalUser(data) {
  return fetch({
    url: '/api/userservice/localUser/deleteLocalUser',
    method: 'delete',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 解锁本地用户接口
 * @param {data} data
 */
export function unlockLocalUser(data) {
  return fetch({
    url: '/api/userservice/localUser/unlockLocalUser?userId=' + data,
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}


/**
 * 删除用户组
 * @param {data} data
 */
export function deleteGroup(query) {
  return fetch({
    url: '/api/userservice/userGroup/deleteGroup?' + query,
    method: 'delete'
  });
}

/**
 * 查询启用状态的部门树
 * @param {data} data
 */
export function findAllDeptList(type) {
  if (type && type === 1) {
    return fetch({
      url: '/api/userservice/dept/findDept?virtualDept=0&type=0',
      method: 'get',
    });
  } else {
    return findDept();
  }
}
/**
 * 查询启用状态的部门树(包含虚拟部门)
 * @param {data} data
 */
export function findDept(data) {
  let query = data ? data : '0';
  return fetch({
    url: '/api/userservice/dept/findDept?virtualDept=' + query,
    method: 'get',
    // headers: { 'Content-Type': 'application/json' },
  });
}
/**
 * 查询全量部门
 * @param {data} data
 */
export function findAllDepartmentList(data) {
  return fetch({
    url: '/api/userservice/dept/findAllDepartmentList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data

  });
}

/**
 * 查询部门列表
 * @param {data} data
 */
export function findDeptList(data) {
  return fetch({
    url: '/api/userservice/dept/findDeptList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 批量删除部门
 * @param {data} data
 */
export function deleteDeptList(data) {
  return fetch({
    url: '/api/userservice/dept/deleteDeptList',
    method: 'delete',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 新增部门
 * @param {data} data
 */
export function addDept(data) {
  return fetch({
    url: '/api/userservice/dept/addDept',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 修改部门
 * @param {data} data
 */
export function updateDept(data) {
  return fetch({
    url: '/api/userservice/dept/updateDept',
    method: 'put',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 查询用户所属权限以及所有信息列表
 * @param {data} data
 */
export function findAllInfoAuthByUserId(query) {
  return fetch({
    url: '/api/userservice/authorityMenu/findAllInfoAuthByUserId?' + query,
    method: 'get',
  });
}

/**
 * 通过groupId查询不在该组内的老师列表
 * @param {data} data
 */
export function findTeacherInfoListNotInGroupId(data) {
  return fetch({
    url: '/api/studentservice/teacherInfo/findTeacherInfoListNotInGroupId',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 首页获取学生或者老师的基本信息
 * @param {data} data
 */
export function findUserInfoByIdType(query) {
  let queryList = query.split('&');
  let params = '';
  let paramsList = queryList.map(item => {
    return item.replace(/(.*)=(.*)/, function (param, p1, p2) {
      // p2 = utils.encode64(p2);
      p2 = cryp.encrypt(p2);//换用新加密方式
      param = `${p1}=${p2}`;
      return param;
    });
  });
  params = paramsList.join('&');
  return fetch({
    url: '/api/studentservice/studentInfo/findUserInfoByIdType?' + params,
    method: 'get'
  });
}

/**
 * 查询本地用户基本信息
 * @param {data} data
 */
export function findLocalUserById(query) {
  return fetch({
    url: '/api/userservice/localUser/findLocalUserById?' + query,
    method: 'get'
  });
}

/**
 * 查询本地用户基本信息
 * @param {data} data
 */
// const query = "userId=" + uid + "&type=1";
export function findUserInfoByType(query) {
  let queryList = query.split('&');
  let params = '';
  let paramsList = queryList.map(item => {
    return item.replace(/(.*)=(.*)/, function (param, p1, p2) {
      // p2 = utils.encode64(p2);
      p2 = cryp.encrypt(p2);
      param = `${p1}=${p2}`;
      return param;
    });
  });
  params = paramsList.join('&');
  return fetch({
    url: '/api/studentservice/studentInfo/findUserInfoByType?' + params,
    method: 'get'
  });
}

/**
 * 用户批量删除用户组
 * @param {data} data
 */
export function batchDelGroupRelByUser(data) {
  return fetch({
    url: '/api/userservice/userGroup/batchDelGroupRelByUser',
    method: 'delete',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 查询角色下面的导师信息
 * @param {data} data
 */
export function findTeacherInfoListInGroupId(data) {
  return fetch({
    url: '/api/studentservice/teacherInfo/findTeacherInfoList',
    method: 'POST',
    data
  });
}

/**
 * 查询老师个人信息
 * @param {string} teacherCode
 */
export function findTeacherInfoBycode(teacherCode) {
  return fetch({
    url: '/api/studentservice/teacherInfo/findTeacherInfoBycode',
    method: 'get',
    params: {
      'code': teacherCode
    }
  });
}

/**
 * 模糊查询老师或学生前十名
 * @param {data} data
 */
export function findTopTenUserList(data) {
  return fetch({
    url: '/api/studentservice/teacherInfo/findTopTenUserList',
    method: 'POST',
    data
  });
}

/**
 * 模糊查询老师前十名
 * @param {data} data
 */
export function findTopTenTeacherList(data) {
  return fetch({
    url: '/api/studentservice/teacherInfo/findTopTenTeacherList',
    method: 'POST',
    data
  });
}


/**
 * 查询用户组关联的角色
 * @param ideee
 */
export function getRoleRelListByGroupId(data) {
  return fetch({
    url: '/api/userservice/userGroup/getRoleRelListByGroupId',
    method: 'POST',
    data
  });
}

/**
 * 用户组批量删除角色
 * @param {data} data
 */
export function batchDelRoleGroupRel(data) {
  return fetch({
    url: '/api/userservice/userGroup/batchDelRoleGroupRel',
    method: 'DELETE',
    data
  });
}


/**
 * 按条件批量添加到组
 * @param {data} data
 */
export function batchUserGroupRelByCondition(data) {
  return fetch({
    url: '/api/studentservice/userInfo/batchUserGroupRelByCondition',
    method: 'post',
    data
  });
}


/**
 * 按条件批量删除组内用户
 * @param {data} data
 */
export function batchDelUserGroupRelByCondition(data) {
  return fetch({
    url: '/api/studentservice/userInfo/batchDelUserGroupRelByCondition',
    method: 'DELETE',
    data
  });
}


/**
 * 通过权限Id查询角色和用户组
 * @param {data} data
 */
export function findGroupRoleByAuth(_authId) {
  return fetch({
    url: '/api/userservice/authorityMenu/findGroupRoleByAuth',
    method: 'get',
    params: {
      authId: _authId
    }
  });
}

/**
 * 通过权限Id查询角色和用户组
 * @param {data} data
 */
export function findGroupRoleByAuthAndUserId(_userId, _authId) {
  return fetch({
    url: '/api/userservice/authorityMenu/findGroupRoleByAuthAndUserId',
    method: 'get',
    params: {
      userId: _userId,
      authId: _authId
    }
  });
}


/**
 * 根据权限code得到对应的菜单/功能对象
 * @param data
 */
export function getAuthorityMenuByCode(authCode) {
  return fetch({
    url: '/api/userservice/authorityMenu/getAuthorityMenuByCode',
    method: 'get',
    params: {
      authCode: authCode
    }
  });
}


/**
 * 查询菜单功能点发布时间列表
 * @param {data} data
 */
export function findAuthPushTimeListPage(data) {
  return fetch({
    url: '/api/userservice/authPushTime/findAuthPushTimeListPage',
    method: 'post',
    data
  });
}


/**
 * 删除菜单功能点发布时间
 * @param {data} data
 */
export function deleteAuthPushTime(data) {
  return fetch({
    url: '/api/userservice/authPushTime/deleteAuthPushTime',
    method: 'DELETE',
    data
  });
}

/**
 * 批量删除菜单功能点发布时间
 * @param {data} data
 */
export function deleteAuthPushTimeByIds(data) {
  return fetch({
    url: '/api/userservice/authPushTime/deleteAuthPushTimeByIds',
    method: 'post',
    data
  });
}

/**
 * 新增菜单功能点发布时间
 * @param {data} data
 */
export function addAuthPushTime(data) {
  return fetch({
    url: '/api/userservice/authPushTime/addAuthPushTime',
    method: 'post',
    data
  });
}

/**
 * 修改菜单功能点发布时间
 * @param {data} data
 */
export function updateAuthPushTime(data) {
  return fetch({
    url: '/api/userservice/authPushTime/updateAuthPushTime',
    method: 'put',
    data
  });
}


/**
 * 查看菜单功能点发布时间详情
 * @param {data} data
 */
export function findAuthPushTimeById(query) {
  return fetch({
    url: '/api/userservice/authPushTime/findAuthPushTimeById?' + query,
    method: 'get'
  });
}


/**
 * 新增或者更新分权数据
 * @param {data} data
 */
export function createOrDelOrUpdateGroupData(data) {
  return fetch({
    url: '/api/userservice/userGroupData/createOrDelOrUpdateGroupData',
    method: 'post',
    data
  });
}


/**
 * 查询组的权限
 * @param {data} data
 */
export function findUserGroupDataByUserGroupId(query) {
  return fetch({
    url: '/api/userservice/userGroupData/findUserGroupDataByUserGroupId',
    method: 'get',
    params: query
  });
}

/**
 * 查询当前用户所属学院
 * @param {data} data
 */
export function findDepIdByUserId(userId, type) {
  return fetch({
    url: '/api/userservice/userGroupData/findDepIdByUserId?userId=' + userId + '&type=' + type,
    method: 'get',
  });
}
/**
 * 修改菜单功能点发布时间(本研开课权限)
 * @param {data} data
 */
export function updateAuthTime(data) {
  return fetch({
    url: '/api/userservice/authPushTime/updateAuthTime',
    method: 'put',
    data
  });
}

/**
 * 新增菜单功能点发布时间（本研开课权限）
 * @param {data} data
 */
export function insertAuthPushTime(data) {
  return fetch({
    url: '/api/userservice/authPushTime/insertAuthPushTime',
    method: 'post',
    data
  });
}


/**
 * 查询培养计划权限列表
 * @param {data} query
 */
export function findAuthPushTimePermissionPage(params) {
  let query = '';
  for (let key in params) {
    query += key;
    query += '=';
    query += params[key];
    query += '&';
  }
  return fetch({
    url: '/api/userservice/authPushTime/findAuthPushTimePermissionPage?' + query,
    method: 'get'
  });
}

/**
 * 修改本地用户能否登录标识
 * @param {data} data
 */
export function updateLoginMark(data) {
  return fetch({
    url: '/api/userservice/localUser/updateLoginMark',
    method: 'put',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

/**
 * 查询本地用户能否登录标识
 * @param {data} data
 */
export function getLoginMark() {
  return fetch({
    url: '/api/userservice/localUser/getLoginMark',
    method: 'get'
  });
}

/**
 * 获取所有学院
 * @param {data} data
 */
export function getAllFacutly(virtualDept, type) {
  return fetch({
    url: '/api/userservice/dept/findDept?virtualDept=' + virtualDept + '&type=' + type,
    method: 'get',
  });
}

/**
 * 获取所有学院(不区分本研)
 * @param {data} data
 */
export function getAllCollege(virtualDept, type, manageDept) {
  return fetch({
    url: '/api/userservice/dept/findDept?virtualDept=' + virtualDept + '&type=' + type + '&manageDept=' + manageDept,
    method: 'get',
  });
}

/**
 *查询老师对应的管理部门列表
 * @param {string} query
 */
export function findManageDepartment(query) {
  return fetch({
    url: '/api/userservice/dept/findManageDepartment',
    method: 'get',
    params: query
  });
}

/**
 * 更新老师管理学院
 * @param {data} data
 */
export function updateManageDepartment(data) {
  return fetch({
    url: '/api/studentservice/teacherInfo/updateTeacher',
    method: 'put',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  });
}

export function findDeptByCondition(data) {
  return fetch({
    url: '/api/userservice/dept/findDeptByCondition',
    method: 'post',
    data
  });
}
/**
 * 学生账号冻结、激活
 * data :[ {"studentId": 1611042, "accountDisabled": 1 } ]
 * accountDisabled  0：解冻；1：冻结
 */
export function updateAccountDisabledStu(data){
  return fetch ({
      url:'/api/studentservice/studentInfo/updateAccountDisabled',
      method:'post',
      data
  })
}

/**
 * 教师账号冻结、激活
 * data :[ {"code": 1611042,//教师工号 "accountDisabled": 1 } ]
 * accountDisabled  0：解冻；1：冻结
 */
export function updateAccountDisabledTea(data){
  return fetch ({
    url:'/api/baseresservice/teacher/updateAccountDisabled',
    method:'post',
    data
  })
}
/**
 * excel导入用户组成员模板下载
 */
export function downLoadTemplate() {
    window.location.href = '/api/userservice/userGroupRel/template'
}

export default {
  'findAuthPushTimeListPage': findAuthPushTimeListPage,
  'findAuthPushTimeById': findAuthPushTimeById,
  'updateAuthPushTime': updateAuthPushTime,
  'addAuthPushTime': addAuthPushTime,
  'deleteAuthPushTime': deleteAuthPushTime,
  'deleteAuthPushTimeByIds': deleteAuthPushTimeByIds,
  'getAuthorityMenuByCode': getAuthorityMenuByCode,
  'updateAuthTime': updateAuthTime,
  'insertAuthPushTime': insertAuthPushTime,
  'findAuthPushTimePermissionPage': findAuthPushTimePermissionPage,
  'getAllFacutly': getAllFacutly,
  'getAllCollege': getAllCollege,
  "findDeptByCondition": findDeptByCondition,
  "downLoadTemplate":downLoadTemplate
};
